
	private void writeFrequencyValue(long value){
		byte buf[] = Long.toString(value).getBytes();
		FileOutputStream out = null;
		try{
			File file = new File("/data/qrdNVValue.txt");
			if(!file.exists()){
				file.createNewFile();
			}
			out = new FileOutputStream(file);//write(byte[] buffer, int byteOffset, int byteCount)
			out.write(buf, 0, buf.length);
		}catch(Exception e){
			e.printStackTrace();
		}finally{
			if(out != null){
				try{
					out.close();
				}catch(Exception e){
					e.printStackTrace();
				}
			}
		}
	}

	private int readFrequencyValue(){
		byte buf[] = new byte[12];
		int ret = 0;
		FileInputStream in = null;
		try{
			File file = new File("/data/qrdNVValue.txt");
			if(file.exists()){
				in = new FileInputStream(file);
				BufferedInputStream buff=new BufferedInputStream(in);
				ret = buff.read(buf, 0, 12);
				if(ret>0){
					valueInFile = Long.parseLong(new String(buf, 0, ret));
				}
				Log.i(TAG, "-->> read from file ret = " + ret + ", valueInFile = " + valueInFile);
			}
		}catch(Exception e){
			e.printStackTrace();
		}finally{
			if(in != null){
				try{
					in.close();
				}catch(Exception e){
					e.printStackTrace();
				}
			}
		}
		return ret;
	}


